package xml.pull_xml_api;

import javax.xml.stream.Location;

public class Chars extends Event {
	
	private final String text;

//	public Chars(String text) {
//		super(null);
//		this.text = text;
//	}
	
	Chars(String text, Location location) {
		super(location);
		this.text = text;
	}

	public String getText() {
		return text;
	}

	@Override
	public boolean isChars() {
		return true;
	}

	@Override
	public boolean isStartDoc() {
		return false;
	}

	@Override
	public boolean isEndDoc() {
		return false;
	}

	@Override
	public boolean isStartTag() {
		return false;
	}

	@Override
	public boolean isEndTag() {
		return false;
	}
}
